package com.p7.notepad.adapter;


import com.p7.notepad.R;
import com.p7.notepad.bean.File;
import com.tools.s7.recycler.BaseRecyclerAdapter;
import com.tools.s7.recycler.holder.BaseViewHolder;

public class FileAdapter extends BaseRecyclerAdapter<File.DataBean> {

    @Override
    protected int getLayoutId() {
        return R.layout.file_item;
    }

    @Override
    protected void bindData(BaseViewHolder holder, final int i, final File.DataBean dataBean) {
        holder.setText(R.id.file_name, dataBean.getName());
        holder.setOnClickListener(R.id.file_btn, mClick);
        holder.setOnClickListener(R.id.file_del, mClick);
    }

}
